home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Communications / IBTip / Source / Escaper.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  685 b   |  27 lines

  1. #import <objc/Object.h>
  2.  
  3. /* the Escaper class is used to perform the escape functions
  4.    of tip3.  It was made a class so that scripts could be
  5.    more easily implemented */
  6.  
  7. enum escapeFunction {
  8.   nop, stop, protocol, parity, sendfile, receivefile,
  9.   capture, hangup, readscript, baudrate, echo, say, expect, dial};
  10.  
  11. @interface Escaper:Object
  12. {
  13.   id term;
  14.   id modem;
  15.   enum escapeFunction keymap[128];  // holds the bindings
  16. }
  17.  
  18. + newEscaperWithTerm:(id)t andModem:(id)m;
  19.  
  20. - doFunction:(enum escapeFunction) func withInput:(id)source;
  21. - doEscape:(char) func;
  22. - bindChar:(char) ch toFunction:(enum escapeFunction) func;
  23. - readScript:(char *)file;
  24. - autoDial:(char *)dialString;
  25.  
  26. @end
  27.